{% if categories %}
<!-- Categories -->
<div xmlns="http://www.w3.org/1999/xhtml" xmlns:owl="http://www.w3.org/2002/07/owl#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:xsd="http://www.w3.org/2001/XMLSchema#">
{% endif %}
{% for category in categories %}
	<div typeof="owl:Class" about="{{category.uri}}">
{% if category.parent_id == 0 %}
		<div rel="rdfs:subClassOf" resource="http://purl.org/goodrelations/v1#ProductOrService"></div>
{% else %}
		<div rel="rdfs:subClassOf" resource="{{category.parent}}"></div>
{% endif %}
		<div property="rdfs:label" datatype="xsd:string" content="{{category.name}} (Catalog Group / Category)"></div>
{% if category.description %}
		<div property="rdfs:comment" datatype="xsd:string" content="{{category.description}}"></div>
{% endif %}
	</div>
{% endfor %}
{% if categories %}
</div>
{% endif %}
